<?php

namespace app\models;

use Yii;
use yii\base\Model;

/**
 * TuijianForm is the model behind the form.
 */
class NoticeForm extends Model
{
    public $title;
    public $content;

    /**
     * @return array the validation rules.
     */
    public function rules()
    {
        return [
            [['title','content'], 'required'],
        ];
    }

    /**
     * @return array customized attribute labels
     */
     public function attributeLabels()
     {
         return [
             'title' => '公告标题',
             'content' => '公告内容',           
         ];
     }

}
